-- GENERATED SPELL FOR [Grimtotem Destroyer] --


function spell0_23594(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_23594', 5289, 1)
end

function Sorts_23594(pUnit, Event)
local choix_sorts_23594 = math.random(0, 0)
if choix_sorts_23594 == 0 then
pUnit:RegisterEvent('spell0_23594', 1, 1)
end
end

function mob23594_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23594', math.random(1500, 3000), 1)
end

function mob23594_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23594_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23594_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23594, 1, 'mob23594_Action')
RegisterUnitEvent(23594, 2, 'mob23594_Leave')
RegisterUnitEvent(23594, 3, 'mob23594_Kill')
RegisterUnitEvent(23594, 4, 'mob23594_Die')
